import Vue from 'vue'

import Router from "vue-router"

import home from "@/views/home"
import article from "@/views/leftside/article"
import project from "@/views/leftside/project"
import profile from "@/views/leftside/profile"
import timeline from "@/views/timeline"
import about from "@/views/about"

Vue.use(Router)

const router = new Router({
    mode:"history",
    routes:[
      {
        path:'/home',
        name:'主页',
        components:{
            leftside:profile,
            content:home
        },
      },{
        path:"/article",
        name:"文章",
        components:{
            leftside:article,
            content:home
        }
      },{
        path:"/project",
        name:"项目",
        components:{
            leftside:project,
            content:home
        }
      },{
        path:"/timeline",
        name:"时间轴",
        components:{
            leftside:profile,
            content:timeline
        }
      },{
        path:"/about",
        name:"关于",
        components:{
            leftside:profile,
            content:about
        }
      }
    ]
  
  })

export default router